package com.damai.utils.value;

import java.math.BigDecimal;

import com.citywithincity.db.interfaces.IValueConvert;

public class BigDecimal2Boolean implements IValueConvert {

	@Override
	public Object convert(Object value) {
		if(value==null)return null;
		return ((BigDecimal)value).intValue() > 0 ? Boolean.TRUE : Boolean.FALSE;
	}

}
